import {legacy_createStore as createStore,combineReducers,applyMiddleware} from "redux" // combineReducers 是用来合并抽离出去的reducer得
// applyMiddleware 是用来处理中间件的
import thunk from "redux-thunk"  // 处理异步得中间件
import logger from "redux-logger" // 打印redux日志
// 比如有10个页面不可能把100个页面都写在index.js里，因为一个文件代码量过于庞大，所有，我们抽离reducer
import AppReducer from "./app"
let reducer = combineReducers({
    AppReducer
})
export default createStore(reducer,applyMiddleware(thunk,logger))



// 下载redux-loggger，打印日志的 redux-thunk，这是是处理异步得中间件